package com.derbysoft.defender.mp.api.request;

import java.util.ArrayList;
import java.util.List;

/**
 * <pre>
 *     参数说明
 * 参数	是否必须	说明
 * openid	是	用户的标识，对当前公众号唯一
 * lang	否	国家地区语言版本，zh_CN 简体，zh_TW 繁体，en 英语，默认为zh-CN
 * </pre>
 * Created by Afee Lee on 2017-03-23 22:08
 *
 * @author Afee Lee
 * @version 1.0
 * @see Object
 * @since 1.8
 */
public class UserParameter {
    private List<Param> user_list = new ArrayList<>();

    public List<Param> getUser_list() {
        return user_list;
    }

    public UserParameter addParam(Param param) {
        this.user_list.add(param);
        return this;
    }

    public static class Param {
        private String openid;
        private String lang;

        public Param(String openid, String lang) {
            this.openid = openid;
            this.lang = lang;
        }

        public String getOpenid() {
            return openid;
        }

        public void setOpenid(String openid) {
            this.openid = openid;
        }

        public String getLang() {
            return lang;
        }

        public void setLang(String lang) {
            this.lang = lang;
        }
    }
}
